package test35;

/**
 * Created by tianxiadiyishuai on 2017/11/21.
 */
public class Salesman extends Employee {
    double basesalary;
    int quantity;
    double commision;
    public Salesman(String name, double basesalary, int quantity, double commision) {
        super(name);
        this.basesalary = basesalary;
        this.quantity = quantity;
        this.commision = commision;
    }
    public double computeSalary(){
        return basesalary+quantity*commision;
    }
    }

